package com.yunhui.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
/**
 * <p>
 *  用户表
 * </p>
 *
 * @author WGH
 * @since 2019-12-09
 */
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id自动增长
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户手机号
     */
    private String phone;
    /**
     * 用户密码
     */
    private String password;
    /**
     * 用户昵称
     */
    private String name;
    /**
     * 用户邮箱
     */
    private String email;
    /**
     * 用户头像图片名称
     */
    private String imgname;
    /**
     * 用户头像的详细地址
     */
    @TableField("imgurl")
    private String imgurl;
    /**
     * 用户的出生日期
     */
    private Date birthday;
    /**
     * 用户的所在地
     */
    @TableField("Address")
    private String Address;
    /**
     * 用户的创建时间
     */
    @TableField("createDate")
    private Date createDate;

    /**
     * 用户的修改时间
     */
    private Date modify;

    /**
     * 用户状态
     */
    @TableField("state")
    private int state;

    /**
     * 用户性别
     * @return
     */
    private int gender;


    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getImgname() {
        return imgname;
    }

    public void setImgname(String imgname) {
        this.imgname = imgname;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getAddress() {
        return Address;
    }

    public void setAddress(String Address) {
        this.Address = Address;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModify() {
        return modify;
    }

    public void setModify(Date modify) {
        this.modify = modify;
    }

    public int getState() { return state; }

    public void setState(int state) { this.state = state; }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "User{" +
        ", id=" + id +
        ", phone=" + phone +
        ", password=" + password +
        ", name=" + name +
        ", email=" + email +
        ", imgurl=" + imgname +
        ", imgAddress=" + imgurl +
        ", birthday=" + birthday +
        ", Address=" + Address +
        ", createDate=" + createDate +
        ", modify=" + modify +
        ", state=" + state +
        ", gender=" + gender +
        "}";
    }
}
